/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 * The event contain mode information. PCP only act on the event if it is on the same mode as the event.
 * It does not make sense that a PCP on summary mode act on a normal selection event containing a single record id.
 * @author: jin Chen
 * @date: Nov 5, 2003$
 * @version: 1.0
 */
package edu.psu.geovista.app.pcp.event;

import edu.psu.geovista.ui.event.SelectionEvent;

import java.awt.*;

public class PcpSelectionEvent extends SelectionEvent{
    protected int mode;
    protected int[] modeIds;//ids under the given mode. e.g. in summary mode, it contain the summary id instead of record id
    protected String obSummaryVar=null;//keep track what variable make the observation summary. It is used to make sure pcp and ts use same variable to make summary

    public PcpSelectionEvent(Object source, int[] selection) {
        super(source, selection);
    }

    public PcpSelectionEvent(Object source, Color[] multipleSlectionColors) {
        super(source, multipleSlectionColors);
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int[] getModeIds() {
        return modeIds;
    }

    public void setModeIds(int[] modeIds) {
        this.modeIds = modeIds;
    }

    public String getObSummaryVar() {
        return obSummaryVar;
    }

    public void setObSummaryVar(String obSummaryVar) {
        this.obSummaryVar = obSummaryVar;
    }
}
